<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        /*
            后代选择器
            .parent>p 亲儿子
            .parent p 选中parent之后的所有p
        */
    .parent>p{
        color: red;
    }
    </style>
</head>
<body>
    <div class="parent">
        <p>hello word</p>
        <p>hello word</p>
        <p>hello word</p>
        <div>
            <p>hello word</p>
            <p>hello word</p>
            <p>hello word</p>
            <p>hello word</p>
        </div>
    </div>
</body>
</html>